const max = 20
const min = 1

const masonry = document.querySelector('.masonry')
let str = ''
for(let i = 0; i < max; i++){
    let random = Math.floor(Math.random()*(max-min)+min)
    let imgUrl = `https://picsum.photos/250/${360*random/20}/?blur=2&random=${random}`
    let imgs = document.createElement('img')
    const items = document.createElement('div')
    items.classList.add('item')
    imgs.setAttribute('src', imgUrl)
    items.appendChild(imgs)
    masonry.appendChild(items)

}
    console.log(str)
bodyHeight =  document.body.getBoundingClientRect().height
console.log(bodyHeight)